﻿namespace NExplorer.AddIns.WinRar
{
	public class WinRarAddIn : IAddIn
	{
		WinRarMenuBuilder _builder;

		public string Name
		{
			get { return "WinRar"; }
		}

		public string Description
		{
			get { return "Adds WinRar context menus and toolbar button"; }
		}

		public void Initialize()
		{
			_builder = new WinRarMenuBuilder();
			ServiceManager.MenuBuilderManager.AddMenuBuilder(_builder);
		}

		public void Unload()
		{
			ServiceManager.MenuBuilderManager.RemoveMenuBuilder(_builder);
			_builder = null;
		}
	}
}
